package com.springboot.experiment2;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * author 陈伯瑞
 * date 2020/4/11 0011 13:12
 * version 1.0
 **/
@SuppressWarnings("unused")
@ConfigurationProperties(prefix = "jon.auto")
public class CustomProperties {

/**
 *  自动配置类是否生效
 *  */
    private  boolean enable=false;
    public  boolean isEnable(){
        return  enable;

    }
    public  void  setEnable(boolean enable){
        this.enable=enable;
    }
}
